package errcode

var (
	Success                     = NewError(0, "成功")
	ServerError                 = NewError(10000000, "服务内部错误")
	InvalidParams               = NewError(10000001, "入参错误")
	NotFound                    = NewError(10000002, "找不到")
	UnauthorizedAuthNotExist    = NewError(10000003, "鉴权失败，请求头中找不到对应的Authorization")
	UnauthorizedAuthFormatError = NewError(10000004, "鉴权失败, 请求头中auth格式错误")
	UnauthorizedTokenError      = NewError(10000005, "鉴权失败，Token 错误")
	UnauthorizedTokenTimeout    = NewError(10000006, "鉴权失败，Token 超时")
	UnauthorizedTokenRedis      = NewError(10000007, "鉴权失败，该用户可能在异地已登录")
	UnauthorizedTokenGenerate   = NewError(10000008, "鉴权失败，Token 生成失败")
	LoginCheckAuthFail          = NewError(10000009, "登录失败，用户名不存在或账号密码错误")
	LoginFail                   = NewError(10000010, "登录失败，服务器内部错误")
	TooManyRequests             = NewError(10000011, "请求过多")
)
